home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
helper1a
/
mainfr.frm
< prev
next >
Wrap
Text File
|
1999-10-09
|
15KB
|
485 lines
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form mainfr
Caption = "Treeview - Report - List Helper - Developer Nikki Pradhan"
ClientHeight = 3195
ClientLeft = 165
ClientTop = 450
ClientWidth = 4680
Icon = "mainfr.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox picSplitter
BackColor = &H00808080&
BorderStyle = 0 'None
FillColor = &H00808080&
Height = 4800
Left = 5910
ScaleHeight = 2090.126
ScaleMode = 0 'User
ScaleWidth = 780
TabIndex = 6
Top = 705
Visible = 0 'False
Width = 72
End
Begin MSComctlLib.TreeView tvTreeView
Height = 4800
Left = 0
TabIndex = 5
Top = 750
Width = 2430
_ExtentX = 4286
_ExtentY = 8467
_Version = 393217
LabelEdit = 1
LineStyle = 1
Style = 7
HotTracking = -1 'True
Appearance = 1
End
Begin MSComctlLib.ListView lvListView
Height = 4800
Left = 2565
TabIndex = 4
Top = 705
Width = 3210
_ExtentX = 5662
_ExtentY = 8467
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
NumItems = 0
End
Begin VB.PictureBox picTitles
Align = 1 'Align Top
Appearance = 0 'Flat
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 300
Left = 0
ScaleHeight = 300
ScaleWidth = 4680
TabIndex = 1
TabStop = 0 'False
Top = 0
Width = 4680
Begin VB.Label lblTitle
BorderStyle = 1 'Fixed Single
Caption = " ListView:"
Height = 270
Index = 1
Left = 2580
TabIndex = 3
Tag = " ListView:"
Top = 0
Width = 3210
End
Begin VB.Label lblTitle
BorderStyle = 1 'Fixed Single
Caption = " TreeView:"
Height = 270
Index = 0
Left = 0
TabIndex = 2
Tag = " TreeView:"
Top = 12
Width = 2016
End
End
Begin MSComctlLib.StatusBar sbStatusBar
Align = 2 'Align Bottom
Height = 270
Left = 0
TabIndex = 0
Top = 2925
Width = 4680
_ExtentX = 8255
_ExtentY = 476
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 2619
Text = "Status"
TextSave = "Status"
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 6
AutoSize = 2
TextSave = "09-Oct-99"
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Style = 5
AutoSize = 2
TextSave = "3:51 PM"
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList imlToolbarIcons
Left = 1980
Top = 6030
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 12
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0442
Key = "Back"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0554
Key = "Forward"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0666
Key = "Cut"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0778
Key = "Copy"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":088A
Key = "Paste"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":099C
Key = "Delete"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0AAE
Key = "Properties"
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0BC0
Key = "View Large Icons"
EndProperty
BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0CD2
Key = "View Small Icons"
EndProperty
BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0DE4
Key = "View List"
EndProperty
BeginProperty ListImage11 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":0EF6
Key = "View Details"
EndProperty
BeginProperty ListImage12 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "mainfr.frx":1008
Key = "Clear List"
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList treeimg
Left = 0
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 22
ImageHeight = 22
MaskColor = 12632256
_Version = 393216
End
Begin VB.Image imgSplitter
Height = 4785
Left = 2460
MousePointer = 9 'Size W E
Top = 750
Width = 180
End
End
Attribute VB_Name = "mainfr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim db As Database
Dim str As String
Dim temprs As Recordset
Dim itmx As ListItem
Const NAME_COLUMN = 0
Const TYPE_COLUMN = 1
Const SIZE_COLUMN = 2
Const DATE_COLUMN = 3
Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
Dim mainsel As String
Dim mbMoving As Boolean
Const sglSplitLimit = 500
Priv